package com.twu.biblioteca;

/**
 * Created by jrocha on 9/22/14.
 */
public class Book extends ItemLibrary {
    public Book(int id, String name, String author, int year){
        super(id, name, year);

        this.author = author;
    }

    public String getAuthor() {
        return this.author;
    }

    @Override
    public String toString() {
        String id = Integer.toString(getId());

        return id + " - " + getName() + " - " + getAuthor() + " - " + getYear();
    }

    private String author;
}
